<?php
$appStartTime = microtime_float();
define('IN_QSF',  TRUE);
define('D_BUG',   TRUE);
define('NOROBOT', TRUE);
D_BUG ? error_reporting(E_ALL ^ E_NOTICE) : error_reporting(0);
define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());
function_exists('set_magic_quotes_runtime') && set_magic_quotes_runtime(0);
function_exists('date_default_timezone_set') && date_default_timezone_set('Asia/Shanghai');
//set_include_path(APP_PATH.'/lib/' . PATH_SEPARATOR . APP_PATH.'/models/' . PATH_SEPARATOR . get_include_path());
function __autoload($classname)
{
	Loader($classname);
}

getrobot();
if(defined('NOROBOT') && IS_ROBOT) {
	exit(header("HTTP/1.1 403 Forbidden"));
}



require_once APP_PATH. '/app_config.php';        //加载项目配置文件
Loader('sys::security');  //加载安全模块
S::filter(); //安全过滤
header('Content-type: text/html; charset=UTF-8');  //设置编码

require_once APP_PATH. '/app_fun.php';           //项目公共函数
require_once APP_PATH. '/action.class.php';      //初始化应用


//addslashes_gpc();
//print_r($_POST);
/*
echo $_POST['db'];
if ($_POST['db'] == addslashes("gbook '".' " /  \'."'")) {
   echo 'ok';
}
exit();
*/